Skip to content

fix(github): Retry a timed-out gh auth token lookup - #6201

Merged
dan-petty merged 3 commits into
mainfrom
fix/4940-slow-gh-auth-token-on-a-loaded-host
Nov 17, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/4940-slow-gh-auth-token-on-a-loaded-host

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The token lookup gives gh auth token 5 seconds. On a loaded host the start of gh alone can take longer, so a valid login reads as not authenticated and the command stops with no retry. The lookup now makes a second attempt after a timeout, keeps the same 5 second limit, and does not retry an OSError or a nonzero exit. The process keeps a token that the retry finds.

Closes #4940

Change: openspec/changes/archive/2026-11-17-4940-slow-gh-auth-token-on-a-loaded-host/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/github GitHub Projects v2, Views, Milestones, Labels, and PR automation labels Nov 17, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 17, 2026 18:42
@dan-petty
dan-petty enabled auto-merge (squash) November 17, 2026 18:42
@dan-petty
dan-petty merged commit ffa602f into main Nov 17, 2026
23 checks passed
@dan-petty
dan-petty deleted the fix/4940-slow-gh-auth-token-on-a-loaded-host branch November 17, 2026 18:47
dan-petty pushed a commit that referenced this pull request Nov 17, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.173.3](v0.173.2...v0.173.3)
(2026-11-17)


### Bug Fixes

* **ci:** Let npm audit ignore a no-fix finding until a date
([#6205](#6205))
([b1a0266](b1a0266))
* **ci:** Show the row name in every gate row line
([#6188](#6188))
([319cdb8](319cdb8))
* **git:** Give the branch-current fetch a 24 second limit
([#6190](#6190))
([a116fa2](a116fa2))
* **github:** Retry a timed-out gh auth token lookup
([#6201](#6201))
([ffa602f](ffa602f))
* **roadmap:** Keep the alternatives result in the body block only
([#6208](#6208))
([6cb6e23](6cb6e23))
* **roadmap:** Leave other job comments out of the alternatives request
([#6192](#6192))
([e6f5718](e6f5718))
* **roadmap:** One plan-state comment for each plan PR
([#6209](#6209))
([32a0df2](32a0df2)),
closes [#6197](#6197)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/github GitHub Projects v2, Views, Milestones, Labels, and PR automation type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(github): a slow gh auth token on a loaded host reads as logged out

1 participant